package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface DishService  {


    void saveWithFlavors(DishDTO dishDTO) ;


    PageResult page(DishPageQueryDTO dishPageQueryDTO);

    void delete(Long[] ids);

    DishVO getByIdWithFlavor(Long id);

    void updateWithFlavors(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    @Select("select * from dish where category_id = #{categoryId}")
    List<Dish> getByCategoryId(Long categoryId);
}
